<?php
/*****************************************
 *  描述：index页面
 *  作者：fenghao
 *  创建：2012-02-21
 *
 *****************************************/

//定义基本路径
//根路径
define("MC_ROOT_DIR", str_replace("\\", "/", realpath(dirname(__FILE__))));

//框架路径
define("MC_CORE_DIR", str_replace("\\", "/", realpath(MC_ROOT_DIR . "/core/")));

$confFile =  MC_ROOT_DIR.'/config.php';


//设定包含文件路径
//set_include_path(get_include_path() . PATH_SEPARATOR .MC_CORE_DIR);

require_once MC_CORE_DIR."/mcphp.php";

try{
    MC_PHP::getInstance()->dispatch($confFile);
} catch (Exception $e){
    //echo $e->getMessage();
    exit;
}

//echo "\n<br />mem use: ".memory_get_usage() ."<br />\n";

//print_r(getrusage()); 

//print_r($_SERVER);
?>

